1 package jrre.instructionset.methodinvocation;
2
3 import jrre.Stack;
4 import jrre.types.*;
5
6 public class IReturn extends jrre.instructionset.Instruction {
7
8 public IReturn(){
9 name = "ireturn";
10 description = "foo foo moo poo";
11 length = 0;
12 }
13
14 /***
15 * Executes the <strong><code>ireturn</code></strong> instruction.
16 */
17 public void execute(){
18
19 Type toReturn = Stack.popOperand();
20 Stack.pop();
21
22 if(toReturn != null)
23 Stack.pushOperand(toReturn);
24 }
25
26 public String toString(){
27 return "return int";
28 }
29
30 }
This page was automatically generated by Maven